package com.gdufs.secondhandwebsite.dao;

import com.gdufs.secondhandwebsite.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface UserMapper {

    Integer insert(User user);


    User findByUsername(String username);

    Integer updatePasswordByUid(
            @Param("user_id") Integer user_id,
            @Param("password") String password);
    User findByUid(Integer user_id);
    Integer updateInfoByUid(User user);
}